/*     */ package com.iris.egrant.webapp.app.struts2;
/*     */ 
/*     */

import com.iris.egrant.app.service.proposal.ProposalLocalService;
import com.iris.egrant.app.utils.IrisStringUtils;
import com.iris.egrant.remote.http.service.ServiceFactory;
import com.iris.egrant.utils.date.DateFormator;
import com.iris.egrant.utils.date.DateUtils;
import com.iris.egrant.web.struts2.Struts2Utils;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.Action;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*     */
/*/*     */ public class IndexAction
        /*     */   extends com.iris.egrant.webapp.struts2.IndexAction
/*     */ {
/*     */   private static final long serialVersionUID = -2700156214728128232L;
/*  68 */   protected final Logger logger = LoggerFactory.getLogger(getClass());
/*     */ 
/*     */   
/*     */   @Resource(name = "serviceFactory")
/*     */   private ServiceFactory serviceFactory;
/*     */ 
/*     */
/*     */   
/*     */   public String execute() throws Exception {
/*  92 */     HttpSession session = Struts2Utils.getSession();
/*  93 */     session.getId();
///*  94 */     if (SecurityUtils.getCurrentUserId().longValue() != 0L) {
///*  95 */       LOG.debug("正在进入首页,已经登录过了...", new String[0]);
///*  96 */       if (Struts2Utils.getRequest().getParameter("service") == null) {
///*  97 */         Struts2Utils.getResponse().sendRedirect(Struts2Utils.getRequest().getContextPath() + "/main");
///*     */       } else {
///*  99 */         return "redir";
///*     */       }
///* 101 */       return "redir";
///*     */     }
/* 103 */    /* LOG.debug("正在进入首页,尚未登录...", new String[0]);
*//* 104 *//*     String username = (String)Struts2Utils.getSession().getAttribute("username");
*//* 105 *//*     Long psnCode = SecurityUtils.getCurrentUserId();
*//* 106 *//*     boolean isFilter = true;
*//*     *//*     try {
*//* 108 *//*       if (StringUtils.isNotBlank(username)) {
*//* 109 *//*         SysUser user = this.sysUserService.findLoginUserByName(username);
*//* 110 *//*         psnCode = (user != null) ? user.getId() : psnCode;
*//* 111 *//*         isFilter = this.sysUserService.isZwLoginFilter(psnCode);
*//*     *//*       }
*//* 113 *//*     } catch (ServiceException e1) {
*//* 114 *//*       e1.printStackTrace();
*//*     *//*     }
*//* 116 *//*     if (isFilter || !"ahkjt".equals(username));
*//*     *//* */
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
///*     */
/////* 131 */     String tips = ((NoticeService)this.serviceFactory.getService(NoticeService.class)).getLastTip();
///* 132 */     Struts2Utils.getRequest().setAttribute("tips", null);
///* 133 */     Struts2Utils.getSession().setAttribute("token", UUID.randomUUID().toString());
///*     */
///* 135 */     Struts2Utils.getRequest().getSession().setAttribute("showKaptcha", Boolean.valueOf(true));
///*     */
/////* 137 */     int num = ((NoticeService)this.serviceFactory.getService(NoticeService.class)).getImportantTipNumByStatus("1").intValue();
//                        int num =1;
///* 138 */     Struts2Utils.getRequest().setAttribute("scrollTipsNum", Integer.valueOf(1));
///* 139 */     if (num > 0) {
/////* 140 */       Map<String, Object> result = ((NoticeService)this.serviceFactory.getService(NoticeService.class)).getImportantTipByStatus("1");
///* 141 */       Struts2Utils.getRequest().setAttribute("tipsContent", "1111");
///*     */     }
/*     */     
/* 144 */     return "success";
/*     */   }
/*     */ 
/*     */
/*     */   
/*     */   @Action("index-check-isukey")
/*     */   public String checkIsUKey() throws Exception {
/* 154 */     String username = Struts2Utils.getParameter("username");
/* 155 */     String randKey = Struts2Utils.getParameter("randKey");
/* 156 */     Struts2Utils.getSession().setAttribute("randomData", randKey);
/* 157 */     if (!IrisStringUtils.isNullOrBlank(username)) {
/* 159 */       Map<String, Object> map = new HashMap<String, Object>();
/* 161 */         map.put("isUKey", "111");
/* 162 */         map.put("ukeypwd", "222");
/* 163 */         map.put("ukeysn", "333");
/* 165 */       Struts2Utils.getSession().setAttribute("uKey", map);
/* 166 */       Struts2Utils.renderJson(map, new String[] { "encoding:UTF-8" });
/*     */     } 
/*     */     
/* 169 */     return null;
/*     */   }
/*     */
/*     */ 
/*     */   
/*     *//*   public String grantInfo() throws Exception {
*//* 182 *//*     List<Map<String, Object>> grantList = null;
*//* 183 *//*     Object grantListCache = this.redisTemplate.opsForValue().get("grantListCache");
*//* 184 *//*     if (grantListCache != null) {
*//* 185 *//*       grantList = (List<Map<String, Object>>)grantListCache;
*//*     *//*     } else {
*//* 187 *//*       grantList = ((AppGrantSettingService)this.serviceFactory.getService(AppGrantSettingService.class)).getGrantListAll();
*//* 188 *//*       this.redisTemplate.opsForValue().set("grantListCache", grantList);
*//*     *//*     }
*//*     *//*
*//*     *//*
*//* 192 *//*     Struts2Utils.getRequest().setAttribute("grantList", grantList);
*//* 193 *//*     return "grantInfo";
*//*     *//*   }*/
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     *//*
*//*     *//*   public String grantInfoByGrantCode() throws Exception {
*//* 202 *//*     String grantCode = Struts2Utils.getParameter("grantCode");
*//* 203 *//*     List<Map<String, Object>> grantList = ((AppGrantSettingService)this.serviceFactory.getService(AppGrantSettingService.class)).getGrantListAll(grantCode);
*//* 204 *//*     Struts2Utils.getRequest().setAttribute("grantList", grantList);
*//* 205 *//*     return "grantInfo";
*//*     *//*   }
*//*     *//*
*//*     *//* */
/*     */ 
/*     */ 
/*     */ 
/*     *//*
*//*     *//*   @Action("index-service-check")
*//*     *//*   public String serviceCheck() throws Exception {
*//* 215 *//*     String pwd = Struts2Utils.getParameter("pwd");
*//* 216 *//*     pwd = ServiceUtils.decodeFromDes3(pwd);
*//*     *//*
*//* 218 *//*     String randata = (String)Struts2Utils.getSession().getAttribute("randomData");
*//* 219 *//*     String clientDigest = Struts2Utils.getParameter("digest");
*//* 220 *//*     HMAC_MD5 hm = new HMAC_MD5(pwd.getBytes());
*//* 221 *//*     hm.addData(randata.getBytes());
*//*     *//*
*//*     *//*
*//* 224 *//*     byte[] digest = hm.sign();
*//* 225 *//*     String ss = hm.toString();
*//*     *//*
*//* 227 *//*     if (clientDigest.equals(ss)) {
*//* 228 *//*       Struts2Utils.renderJson(Boolean.valueOf(true), new String[] { "encoding:UTF-8" });
*//*     *//*     } else {
*//* 230 *//*       Struts2Utils.renderJson(Boolean.valueOf(false), new String[] { "encoding:UTF-8" });
*//*     *//*     }
*//* 232 *//*     return null;
*//*     *//*   }
*//*     *//* */
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public String enterProposal() throws Exception {
/* 243 */     String statuses = Struts2Utils.getRequest().getParameter("statuses");
/* 244 */     String strSubGrantCode = Struts2Utils.getParameter("subGrantCode");
/* 245 */     List<?> proList = ((ProposalLocalService)this.serviceFactory.getService(ProposalLocalService.class)).queryPrpFormList(strSubGrantCode, statuses);
/* 246 */     HttpServletRequest request = ServletActionContext.getRequest();
/* 247 */     request.setAttribute("proList", proList);
/*     */     
/* 249 */     Struts2Utils.getRequest().setAttribute("curDate", DateUtils.toString(DateUtils.now(), DateFormator.YEAR_MONTH_DAY_HH_MM_SS));
/*     */
/* 263 */     Struts2Utils.getRequest().setAttribute("orgCode","444");
/*     */     
/* 265 */     Struts2Utils.getRequest().setAttribute("defaultOrgName", "333");
/*     */     
/* 267 */     return "index";
/*     */   }
/*     */   /*
*//*     *//*   public String enterPrjCollections() throws Exception {
*//* 271 *//*     String statuses = Struts2Utils.getRequest().getParameter("statuses");
*//* 272 *//*     String strSubGrantCode = Struts2Utils.getParameter("subGrantCode");
*//* 273 *//*     List<?> proList = ((ProposalLocalService)this.serviceFactory.getService(ProposalLocalService.class)).queryPrpFormListByCategory(strSubGrantCode, statuses, "01");
*//* 274 *//*     HttpServletRequest request = ServletActionContext.getRequest();
*//* 275 *//*     request.setAttribute("proList", proList);
*//*     *//*
*//* 277 *//*     Struts2Utils.getRequest().setAttribute("curDate", DateUtils.toString(DateUtils.now(), DateFormator.YEAR_MONTH_DAY_HH_MM_SS));
*//*     *//*
*//* 279 *//*     Person person = ((PersonService)this.serviceFactory.getService(PersonService.class)).getPerson(SecurityUtils.getCurrentUserId());
*//* 280 *//*     Long orgCode = person.getOrgCode();
*//* 281 *//*     List<Organization> grantOrgs = ((OrgGrantPsnManageService)this.serviceFactory.getService(OrgGrantPsnManageService.class)).findGrantOrgs4Psn(SecurityUtils.getCurrentUserId());
*//* 282 *//*     if (CollectionUtils.isNotEmpty(grantOrgs)) {
*//* 283 *//*       Struts2Utils.getRequest().setAttribute("grantOrgs", grantOrgs);
*//* 284 *//*       if (null == orgCode || orgCode.longValue() == 0L) {
*//* 285 *//*         orgCode = ((Organization)grantOrgs.get(0)).getOrgCode();
*//*     *//*       }
*//*     *//*     }
*//*     *//*
*//* 289 *//*     Struts2Utils.getRequest().setAttribute("orgCode", (null != orgCode && orgCode.longValue() > 0L) ? ServiceUtils.encodeToDes3(String.valueOf(orgCode)) : "");
*//*     *//*
*//* 291 *//*     Struts2Utils.getRequest().setAttribute("defaultOrgName", person.getOrgName());
*//*     *//*
*//* 293 *//*     return "index";
*//*     *//*   }
*//*     *//*
*//*     *//*   public String enterTechPayoffs() throws Exception {
*//* 297 *//*     String statuses = Struts2Utils.getRequest().getParameter("statuses");
*//* 298 *//*     String strSubGrantCode = Struts2Utils.getParameter("subGrantCode");
*//* 299 *//*     List<?> proList = ((ProposalLocalService)this.serviceFactory.getService(ProposalLocalService.class)).queryPrpFormListByCategory(strSubGrantCode, statuses, "02");
*//* 300 *//*     HttpServletRequest request = ServletActionContext.getRequest();
*//* 301 *//*     request.setAttribute("proList", proList);
*//*     *//*
*//* 303 *//*     Struts2Utils.getRequest().setAttribute("curDate", DateUtils.toString(DateUtils.now(), DateFormator.YEAR_MONTH_DAY_HH_MM_SS));
*//*     *//*
*//* 305 *//*     Person person = ((PersonService)this.serviceFactory.getService(PersonService.class)).getPerson(SecurityUtils.getCurrentUserId());
*//* 306 *//*     Long orgCode = person.getOrgCode();
*//* 307 *//*     List<Organization> grantOrgs = ((OrgGrantPsnManageService)this.serviceFactory.getService(OrgGrantPsnManageService.class)).findGrantOrgs4Psn(SecurityUtils.getCurrentUserId());
*//* 308 *//*     if (CollectionUtils.isNotEmpty(grantOrgs)) {
*//* 309 *//*       Struts2Utils.getRequest().setAttribute("grantOrgs", grantOrgs);
*//* 310 *//*       if (null == orgCode || orgCode.longValue() == 0L) {
*//* 311 *//*         orgCode = ((Organization)grantOrgs.get(0)).getOrgCode();
*//*     *//*       }
*//*     *//*     }
*//*     *//*
*//* 315 *//*     Struts2Utils.getRequest().setAttribute("orgCode", (null != orgCode && orgCode.longValue() > 0L) ? ServiceUtils.encodeToDes3(String.valueOf(orgCode)) : "");
*//*     *//*
*//* 317 *//*     Struts2Utils.getRequest().setAttribute("defaultOrgName", person.getOrgName());
*//*     *//*
*//* 319 *//*     return "index";
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String auditCommentView() {
*//* 327 *//*     String posCodeStr = ServiceUtils.decodeFromDes3(Struts2Utils.getParameter("posCode"));
*//* 328 *//*     String flag = Struts2Utils.getParameter("flag");
*//*     *//*
*//* 330 *//*     if (flag != null && flag != "" && flag.equalsIgnoreCase("historyOpinion")) {
*//* 331 *//*       posCodeStr = Struts2Utils.getParameter("posCode");
*//* 332 *//*       posCodeStr = ServiceUtils.decodeFromDes3(posCodeStr, "111111222222333333444444").split("\\|")[0];
*//*     *//*     }
*//*     *//*
*//* 335 *//*     if (NumberUtils.isDigits(posCodeStr)) {
*//* 336 *//*       List<Map<String, Object>> commentList = ((AuditLocalService)this.serviceFactory.getService(AuditLocalService.class)).findAuditCommentInfo(posCodeStr, "proposal");
*//* 337 *//*       Struts2Utils.getRequest().setAttribute("commentList", commentList);
*//* 338 *//*       int roleId = SecurityUtils.getCurrentUserRoleId();
*//* 339 *//*       Long userId = SecurityUtils.getCurrentUserId();
*//* 340 *//*       Struts2Utils.getRequest().setAttribute("userId", userId);
*//* 341 *//*       Struts2Utils.getRequest().setAttribute("roleId", Integer.valueOf(roleId));
*//*     *//*     }
*//* 343 *//*     return "auditCommentView";
*//*     *//*   }
*//*     *//*
*//*     *//*   public String auditJshtCommentView() {
*//* 347 *//*     String posCodeStr = ServiceUtils.decodeFromDes3(Struts2Utils.getParameter("posCode"));
*//* 348 *//*     String flag = Struts2Utils.getParameter("flag");
*//*     *//*
*//* 350 *//*     if (flag != null && flag != "" && flag.equalsIgnoreCase("historyOpinion")) {
*//* 351 *//*       posCodeStr = Struts2Utils.getParameter("posCode");
*//* 352 *//*       posCodeStr = ServiceUtils.decodeFromDes3(posCodeStr, "111111222222333333444444").split("\\|")[0];
*//*     *//*     }
*//*     *//*
*//* 355 *//*     if (NumberUtils.isDigits(posCodeStr)) {
*//* 356 *//*       List<Map<String, Object>> commentList = ((AuditLocalService)this.serviceFactory.getService(AuditLocalService.class)).findAuditJshtCommentInfo(posCodeStr, "proposal");
*//* 357 *//*       Struts2Utils.getRequest().setAttribute("commentList", commentList);
*//* 358 *//*       int roleId = SecurityUtils.getCurrentUserRoleId();
*//* 359 *//*       Long userId = SecurityUtils.getCurrentUserId();
*//* 360 *//*       Struts2Utils.getRequest().setAttribute("userId", userId);
*//* 361 *//*       Struts2Utils.getRequest().setAttribute("roleId", Integer.valueOf(roleId));
*//*     *//*     }
*//* 363 *//*     return "auditCommentView";
*//*     *//*   }
*//*     *//*
*//*     *//*   public String openApproveDialog() {
*//* 367 *//*     return "opendialog";
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//**//*
*//**//*     *//**//*   public String aboutNotice() {
*//**//* 376 *//**//*     Long off_org_code = ((PsnOfficeMngService)this.serviceFactory.getService(PsnOfficeMngService.class)).getPsnOrgOfficeCode(null);
*//**//* 377 *//**//*     String xmlData = ((NoticeService)this.serviceFactory.getService(NoticeService.class)).noticeList(off_org_code);
*//**//* 378 *//**//*     Struts2Utils.getRequest().setAttribute("xmlData", xmlData);
*//**//* 379 *//**//*     return "aboutNotice";
*//**//*     *//**//*   }*//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//**//*   public String aboutIndexNotice() {
*//**//* 388 *//**//*     List noticeList = ((NoticeService)this.serviceFactory.getService(NoticeService.class)).indexNoticeList();
*//**//* 389 *//**//*     Struts2Utils.getRequest().setAttribute("noticeList", noticeList);
*//**//* 390 *//**//*     return "aboutIndexNotice";
*//**//*     *//**//*   }*//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String authClient() throws Exception {
*//* 403 *//*     String token = null;
*//*     *//*     try {
*//* 405 *//*       token = NetWorkUtils.getToken();
*//* 406 *//*     } catch (Exception e) {
*//* 407 *//*       this.logger.info("[authClient()方法]对接政务网，无法获取token！");
*//* 408 *//*       e.printStackTrace();
*//*     *//*     }
*//* 410 *//*     this.logger.info("[authClient()方法]对接政务网，获取token：" + token + "  sessionid:" + Struts2Utils.getSession().getId());
*//*     *//*
*//*     *//*
*//*     *//*
*//* 414 *//*     if (StringUtils.isBlank(token)) {
*//* 415 *//*       NetWorkUtils.redirect(null);
*//* 416 *//*       return null;
*//*     *//*     }
*//*     *//*
*//* 419 *//*     Map<String, String> params = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).getParams(token);
*//*     *//*
*//* 421 *//*     String code = MapUtils.getString(params, "code");
*//*     *//*
*//* 423 *//*     if ("403".equals(code)) {
*//*     *//*
*//* 425 *//*       this.logger.info("[authClient()方法]对接政务网，单点登录，token失效，跳转到业务系统首页！");
*//* 426 *//*       NetWorkUtils.redirect(null);
*//* 427 *//*       return null;
*//*     *//*     }
*//*     *//*
*//*     *//*
*//* 431 *//*     String returnDoLoginStr = doLogin(params);
*//* 432 *//*     if (StringUtils.isNotBlank(returnDoLoginStr)) {
*//* 433 *//*       return returnDoLoginStr;
*//*     *//*     }
*//*     *//*
*//*     *//*
*//* 437 *//*     Struts2Utils.getRequest().setAttribute("systemName", this.systemName);
*//* 438 *//*     return "oauth_home";
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   private String doLogin(Map<String, String> params) throws SQLException {
*//* 450 *//*     params.put("email", null);
*//* 451 *//*     PageContainer page = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).getUserList(params);
*//*     *//*
*//* 453 *//*     String curZwUserId = (MapUtils.getString(params, "userId") != null) ? MapUtils.getString(params, "userId") : "";
*//*     *//*
*//* 455 *//*     String acType = MapUtils.getString(params, "acType");
*//* 456 *//*     List<Map<String, Object>> data = page.getGrid().getData();
*//*     *//*
*//* 458 *//*     if (data.size() > 1) {
*//*     *//*
*//* 460 *//*       Struts2Utils.getRequest().setAttribute("data", data);
*//* 461 *//*       Struts2Utils.getRequest().setAttribute("opType", "3");
*//* 462 *//*       String psnCode = MapUtils.getString(data.get(0), "psn_code");
*//* 463 *//*       upAccountInfoByZw(params, acType, psnCode, curZwUserId);
*//* 464 *//*     } else if (data.size() == 1) {
*//*     *//*
*//* 466 *//*       Map<String, Object> userInfo = data.get(0);
*//*     *//*
*//* 468 *//*       Struts2Utils.getRequest().setAttribute("loginName", MapUtils.getString(userInfo, "login_name"));
*//*     *//*
*//*     *//*       try {
*//* 471 *//*         String password = ((SysUserService)this.serviceFactory.getService(SysUserService.class)).findSysUserById(MapUtils.getLong(data.get(0), "psn_code")).getPassword();
*//* 472 *//*         password = ServiceUtils.decodeFromDes3(password);
*//* 473 *//*         password = MD5.md5(password);
*//* 474 *//*         Struts2Utils.getRequest().setAttribute("pwd", password);
*//* 475 *//*       } catch (ServiceException e) {
*//* 476 *//*         e.printStackTrace();
*//*     *//*       }
*//*     *//*
*//* 479 *//*       Struts2Utils.getRequest().setAttribute("opType", "2");
*//*     *//*
*//* 481 *//*       String psnCode = MapUtils.getString(userInfo, "psn_code");
*//* 482 *//*       upAccountInfoByZw(params, acType, psnCode, curZwUserId);
*//*     *//*     } else {
*//*     *//*       long psnCode;
*//*     *//*
*//* 486 *//*       Map<String, Object> checkResult = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).checkUserInfo(params);
*//*     *//*
*//* 488 *//*       String checkZwUserId = (MapUtils.getString(checkResult, "userId") != null) ? MapUtils.getString(checkResult, "userId") : "";
*//*     *//*
*//* 490 *//*       boolean isSameZwUserId = curZwUserId.equals(checkZwUserId);
*//* 491 *//*       String checkPsnCode = MapUtils.getString(checkResult, "psn_code");
*//*     *//*
*//* 493 *//*       if (StringUtils.isNotBlank(checkPsnCode) && !isSameZwUserId) {
*//* 494 *//*         Map<String, String> zwResult = new HashMap<String, String>();
*//*     *//*
*//* 496 *//*         zwResult.put("ZW_LOGIN_NAME", MapUtils.getString(params, "account"));
*//*     *//*
*//* 498 *//*         zwResult.put("ZW_CREDENT_NO", MapUtils.getString(params, "credentNo"));
*//* 499 *//*         zwResult.put("ZW_ZH_NAME", MapUtils.getString(params, "zhName"));
*//* 500 *//*         if ("0".equals(acType)) {
*//* 501 *//*           zwResult.put("ZW_PHONE", MapUtils.getString(params, "bindPhone"));
*//* 502 *//*         } else if ("1".equals(acType)) {
*//* 503 *//*           zwResult.put("ZW_ORGNAME", MapUtils.getString(params, "orgName"));
*//* 504 *//*           zwResult.put("ZW_PHONE", MapUtils.getString(params, "telephone"));
*//*     *//*         }
*//*     *//*
*//* 507 *//*         Struts2Utils.getRequest().setAttribute("illegal", "1");
*//* 508 *//*         Struts2Utils.getRequest().setAttribute("userInfo", checkResult);
*//* 509 *//*         Struts2Utils.getRequest().setAttribute("zwResult", zwResult);
*//* 510 *//*         return "tips";
*//*     *//*       }
*//*     *//*
*//* 513 *//*       if ("0".equals(acType)) {
*//*     *//*
*//* 515 *//*         Struts2Utils.getRequest().setAttribute("opType", "1");
*//* 516 *//*       } else if ("1".equals(acType)) {
*//*     *//*
*//* 518 *//*         Struts2Utils.getRequest().setAttribute("opType", "2");
*//*     *//*       }
*//*     *//*
*//* 521 *//*       if (isSameZwUserId) {
*//*     *//*
*//* 523 *//*         psnCode = (checkPsnCode != null) ? Long.parseLong(checkPsnCode) : 0L;
*//*     *//*       } else {
*//*     *//*
*//* 526 *//*         psnCode = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).createAccount(params);
*//*     *//*       }
*//*     *//*
*//* 529 *//*       Map<String, String> userInfo = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).getUserInfo(psnCode);
*//* 530 *//*       Struts2Utils.getRequest().setAttribute("userInfo", userInfo);
*//* 531 *//*       Struts2Utils.getRequest().setAttribute("pwd", ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).getpwd(String.valueOf(psnCode)));
*//*     *//*     }
*//* 533 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   private void upAccountInfoByZw(Map<String, String> params, String acType, String psnCode, String curZwUserId) {
*//* 549 *//*     if ("0".equals(acType)) {
*//*     *//*
*//* 551 *//*       ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).synZwAccount(acType, psnCode, MapUtils.getString(params, "credentNo"), MapUtils.getString(params, "credentType"), MapUtils.getString(params, "email"), MapUtils.getString(params, "bindPhone"), MapUtils.getString(params, "sex"), MapUtils.getString(params, "name"), curZwUserId, MapUtils.getString(params, "account"));
*//*     *//*     } else {
*//*     *//*
*//* 554 *//*       ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).synZwAccountFr(MapUtils.getString(params, "orgName"), MapUtils.getString(params, "credentNo"), MapUtils.getString(params, "zhName"), MapUtils.getString(params, "identityNo"), MapUtils.getString(params, "account"), psnCode, MapUtils.getString(params, "email"), MapUtils.getString(params, "telephone"), curZwUserId);
*//*     *//*     }
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String getUserList() throws Exception {
*//* 566 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String toLogout() throws Exception {
*//* 579 *//*     Long psnCode = SecurityUtils.getCurrentUserId();
*//* 580 *//*     boolean isFilter = true;
*//*     *//*     try {
*//* 582 *//*       isFilter = this.sysUserService.isZwLoginFilter(psnCode);
*//* 583 *//*     } catch (ServiceException e) {
*//* 584 *//*       e.printStackTrace();
*//*     *//*     }
*//*     *//*
*//* 587 *//*     Map<String, String> result = new HashMap<String, String>();
*//*     *//*
*//*     *//*
*//* 590 *//*     if (isFilter) {
*//*     *//*
*//* 592 *//*       String token = "";
*//*     *//*       try {
*//* 594 *//*         token = NetWorkUtils.getToken();
*//*     *//*       }
*//* 596 *//*       catch (Exception e) {
*//* 597 *//*         this.logger.error("获取政务网用户令牌注销失败", e);
*//* 598 *//*         result.put("flag", "error");
*//* 599 *//*         result.put("msg", "获取政务网用户令牌注销失败");
*//* 600 *//*         Struts2Utils.renderJson(result, new String[] { "encoding:UTF-8" });
*//*     *//*
*//* 602 *//*         SecurityContextHolder.getContext().getAuthentication().setAuthenticated(false);
*//* 603 *//*         Struts2Utils.getSession().invalidate();
*//* 604 *//*         return null;
*//*     *//*       }
*//*     *//*
*//* 607 *//*       String netTokenLogout = ((AppSettingService)this.serviceFactory.getService(AppSettingService.class)).getValue("net_token_logout") + token;
*//*     *//*
*//* 609 *//*       String jsonStr = (String)this.restTemplate.getForObject(netTokenLogout, String.class, new Object[0]);
*//* 610 *//*       String code = (String)JSONObject.fromObject(jsonStr).get("code");
*//* 611 *//*       String msg = (String)JSONObject.fromObject(jsonStr).get("msg");
*//*     *//*
*//* 613 *//*       if (!"200".equals(code)) {
*//* 614 *//*         result.put("flag", "error");
*//* 615 *//*         result.put("msg", msg);
*//* 616 *//*         Struts2Utils.renderJson(result, new String[] { "encoding:UTF-8" });
*//* 617 *//*         return null;
*//*     *//*       }
*//*     *//*
*//* 620 *//*       String serverUrl = ((AppSettingService)this.serviceFactory.getService(AppSettingService.class)).getValue("net_work_logout");
*//* 621 *//*       result.put("serverUrl", serverUrl);
*//* 622 *//*       result.put("flag", "ok");
*//* 623 *//*       Struts2Utils.renderJson(result, new String[] { "encoding:UTF-8" });
*//*     *//*     } else {
*//* 625 *//*       result.put("flag", "selfSys");
*//* 626 *//*       Struts2Utils.renderJson(result, new String[] { "encoding:UTF-8" });
*//*     *//*     }
*//*     *//*
*//*     *//*
*//* 630 *//*     SecurityContextHolder.getContext().getAuthentication().setAuthenticated(false);
*//* 631 *//*     Struts2Utils.getSession().invalidate();
*//*     *//*
*//* 633 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String saveSelectedRole() {
*//* 643 *//*     String psnCode = Struts2Utils.getParameter("psnCode");
*//* 644 *//*     String roleId = Struts2Utils.getParameter("roleId");
*//* 645 *//*     String result = ((PersonLocalService)this.serviceFactory.getService(PersonLocalService.class)).saveSelectedRole(psnCode, roleId);
*//* 646 *//*     Struts2Utils.renderText(result, new String[] { "encoding:UTF-8" });
*//* 647 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String toLoginPage() {
*//* 657 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*   @Deprecated
*//*     *//*   public String synZwHistoryData() {
*//*     *//*     try {
*//* 664 *//*       ((SynDataService)this.serviceFactory.getService(SynDataService.class)).synZwHistoryData();
*//* 665 *//*     } catch (Exception e) {
*//* 666 *//*       this.logger.error("历史数据对接出错", e);
*//*     *//*     }
*//* 668 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String reSynZwData() {
*//*     *//*     try {
*//* 678 *//*       ((RePushZwFsDataService)this.serviceFactory.getService(RePushZwFsDataService.class)).synZwHistoryData();
*//* 679 *//*     } catch (Exception e) {
*//* 680 *//*       this.logger.error("历史数据对接出错", e);
*//*     *//*     }
*//* 682 *//*     return null;
*//*     *//*   }
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*
*//*     *//*   public String synZwDataByMethod() {
*//*     *//*     try {
*//* 692 *//*       ((RePushZwFsDataService)this.serviceFactory.getService(RePushZwFsDataService.class)).synZwDataByMethod();
*//* 693 *//*     } catch (Exception e) {
*//* 694 *//*       this.logger.error("历史数据对接出错", e);
*//*     *//*     }
*//* 696 *//*     return null;
*//*     *//*   }*/
/*     */ }


/* Location:              D:\文件\123\WEB-INF\classes\!\com\iris\egrant\webapp\app\struts2\IndexAction.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */